package com.hw.service;

import com.github.pagehelper.PageInfo;
import com.hw.event.DeviceEvent;
import com.hw.pojo.Devices;

import java.util.List;

/**
 * @InterfaceName: DevicesService
 * @Description:
 * @Author: vie0134
 * @Date: 2020-12-15 17:06
 * @Version: 1.0
 **/
public interface DevicesService {
    PageInfo<Devices> findAllDevices(int pageNum, int pageSize, String address, String status, Integer areaid, Integer categoryid);
    void addDevices(Devices devices);
    void updateDevices(Devices devices);
    void deleteDevicesById(Integer id);
    void deleteDevicesByIds(List<String> ids);
    Devices findDevicesById(Integer id);
    Devices findDevicesByUUID(String uuid);
    void sendControl(String uuid, String command);
    void onEvent(DeviceEvent deviceEvent);
}
